package com.qf.blog.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.qf.blog.commons.utils.TimeAgoUtils;
import lombok.Data;

import java.util.Date;

/**
 * User: key
 * ClassName:Comment
 * Date: 2023/6/2
 * Time: 21:06
 * description:
 */
@Data
@TableName("comment")
public class Comment {
    @TableId(type = IdType.AUTO)
    private Integer id;
    @TableField("user_id")
    private Integer userId;
    @TableField("entity_type")
    private Integer entityType;
    @TableField("entity_id")
    private Integer entityId;
    @TableField("target_id")
    private Integer targetId;
    private String content;
    private Integer status;
    @TableField("create_time")
    private Date createTime;
    @TableField(exist = false)
    private String createTimeStr;

}
